import request from '@/utils/request'

/**
 *
 * 获取-权限点列表
 *
*/
export function getList() {
  return request({
    url: '/sys/permission'
  })
}
/**
 *
 * 删除
 *
*/
export function delAPI(id) {
  return request({
    url: `/sys/permission/${id}`,
    method: 'delete'
  })
}
/**
 *
 * 添加
 *
*/
export function appendAPI(data) {
  return request({
    url: '/sys/permission',
    method: 'post',
    data
  })
}
/**
 *
 * 获取详情
 *
*/
export function detailAPI(id) {
  return request({
    url: `/sys/permission/${id}`
  })
}
/**
 * 修改详情
 *
 */
export function cancelAPI(data) {
  return request({
    url: `/sys/permission/${data.id}`,
    method: 'put'
  })
}
